<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Api</title>

    <style>
        .route-container {
            margin: 10px auto;
            width: 500px;
            padding: 10px;
            display: flex;
            background: #193327;
            flex-flow: column;
        }

        .route {
            width: 100%;
            color: white;
            margin: 10px;
            padding: 10px;
        }

        .route > .link {
            color: greenyellow;
            text-decoration: none;
        }

        .route > .method {
            font-size: 0.8em;
            background: deepskyblue;
            border: 3px;
            padding: 1px 3px;
            border-radius: 3px;
            color: black;
        }

        .route > .index {

        }
    </style>
</head>
<body>
<div class="route-container">
    @foreach($routes as $key => $route)
        <div class="route">
            <span class="index">{{$key}}</span>
            @foreach($route['methods'] as $method)
                <span class="method">{{$method}}</span>
            @endforeach
            <a class="link" href="{{$route['route']}}">{{$route['route']}}</a>
        </div>
    @endforeach
</div>
</body>
</html>